#include<iostream>
#include<string>
using namespace std;

int main()
{
    string a, b;
    cin >> a >> b;
    bool f1 = 0, f2 = 0;
    for (int i = 0; i < a.size(); i++)
    {
        // if (i == 0 && a[i] == '-') continue;
        if (!isdigit(a[i]) || a.size() > 4) 
        {
            f1 = 1;
            break;
        }
    }
    for (int i = 0; i < b.size(); i++)
    {
        // if (i == 0 && b[i] == '-') continue;
        if (!isdigit(b[i]) || b.size() > 4) 
        {
            f2 = 1;
            break;
        }
    }
    if (f1) a = "?";
    if (f2) b = "?";
    string ret;
    if (f1 || f2) ret = "?";
    else ret = to_string(stoi(a) + stoi(b));

    cout << a << " + " << b << " = " << ret << endl;
    return 0;
}